import {IN_CREMENT,DE_CREMENT} from "../action/actionTypes"
export default function reducer (state=5,action){
  switch(action.type){
    case IN_CREMENT:
      state=state+1
      return state;
    case DE_CREMENT:
      state=state-1
      return state;
    default:
      return state
  }
}